package com.kyivmohyla.kma2.shared.model;

import java.io.Serializable;
import java.util.Date;

public class UIOrder implements Serializable {
    private static final long serialVersionUID = 1L;
    private int orderId;
    private Date createDate;
    private Date startDate;
    private Date endDate;
    private Date desStartDate;
    private Date desEndDate;
    private String commentary;
    private int stateId;
    private int customerId;
    private int engineerId;
    private String customerName;
    private String engineerName;
    private String stateName;
    private String customerAddress;

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Date getDesStartDate() {
        return desStartDate;
    }

    public void setDesStartDate(Date desStartDate) {
        this.desStartDate = desStartDate;
    }

    public Date getDesEndDate() {
        return desEndDate;
    }

    public void setDesEndDate(Date desEndDate) {
        this.desEndDate = desEndDate;
    }

    public String getCommentary() {
        return commentary;
    }

    public void setCommentary(String commentary) {
        this.commentary = commentary;
    }

    public int getStateId() {
        return stateId;
    }

    public void setStateId(int stateId) {
        this.stateId = stateId;
    }

    public int getCustomerId() {
        return customerId;
    }

    public void setCustomerId(int customerId) {
        this.customerId = customerId;
    }

    public int getEngineerId() {
        return engineerId;
    }

    public void setEngineerId(int engineerId) {
        this.engineerId = engineerId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getEngineerName() {
        return engineerName;
    }

    public void setEngineerName(String engineerName) {
        this.engineerName = engineerName;
    }

    public String getStateName() {
        return stateName;
    }

    public void setStateName(String stateName) {
        this.stateName = stateName;
    }

    public String getCustomerAddress() {
        return customerAddress;
    }

    public void setCustomerAddress(String customerAddress) {
        this.customerAddress = customerAddress;
    }

    @Override
    public String toString() {
        return "Order(orderId = " + orderId + ", createDate = " + createDate + ", startDate = " + startDate + ", endDate = " + endDate + ", desStartDate = " + desStartDate + ", desEndDate = " + desEndDate + ", commentary = " + commentary + ", stateId = " + stateId + ", customerId = " + customerId + ", engineerId = " + engineerId + ")";
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UIOrder order = (UIOrder) o;
        return orderId == order.orderId;
    }

    @Override
    public int hashCode() {
        return orderId;
    }
}
